home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 131 / XENIATGM131.iso / Goodies / I-WAR 2 Egde of Chaos - New SDK / IW2-EOC_Pog_Scripting_SDK.exe / include / Set.h < prev    next >
C/C++ Source or Header  |  2002-01-14  |  2KB  |  107 lines

  1. //
  2. // (c) 1999 Particle Systems Ltd. All Rights Reserved
  3. //
  4. // Set.h
  5. //
  6. // API for the package Set.
  7. //
  8. // Revision control information:
  9. //
  10. // $Header: /flux/packages/Set.h 7     6/12/00 11:36 Carl $
  11. //
  12.  
  13. #include "Flux.h"
  14.  
  15. #ifdef FLUX_COMPILE
  16.  
  17. FLUX_DECLARE_EXTENSION(Set);
  18.  
  19. #ifdef FLUX_LIB
  20. #if _MSC_VER >= 1000
  21. #pragma comment( lib, "set" )
  22. #endif // _MSC_VER >= 1000
  23. #endif // FLUX_LIB
  24.  
  25. #else
  26. // Declare the script object type as a script set object
  27. object set ( FcScriptSet );
  28.  
  29. // Include the list header so that we can make conversion functions
  30. uses List;
  31.  
  32. //
  33. // hobject Set.FirstElement( ref set the_set )
  34. //
  35. // Accessor for the first handle stored in the_set
  36. //
  37. prototype hobject Set.FirstElement( ref set the_set );
  38.  
  39. //
  40. // Set.Remove( ref set the_set, hobject the_handle ) 
  41. //
  42. // Remove the handle from the_set
  43. //
  44. prototype Set.Remove( ref set the_set, hobject the_handle );
  45.  
  46. //
  47. // Set.Add( ref set the_set, hobject the_handle )
  48. //
  49. // Add the handle to the set
  50. //
  51. prototype Set.Add( ref set the_set, hobject the_handle );
  52.  
  53. //
  54. // bool Set.Contains( ref set the_set, hobject the_handle )
  55. //
  56. // Check whether the_set contains the_handle
  57. //
  58. prototype bool Set.Contains( ref set the_set, hobject the_handle );
  59.  
  60. //
  61. // bool Set.IsEmpty( set the_set )
  62. //
  63. // Returns true if the set is empty
  64. //
  65. prototype bool Set.IsEmpty( ref set the_set );
  66.  
  67. //
  68. // int Set.ItemCount( ref set the_set )
  69. //
  70. // Get the item count of the_set
  71. //
  72. prototype int Set.ItemCount( ref set the_set );
  73.  
  74. //
  75. // Set.Union( set set_one, set set_two )
  76. //
  77. // The union of set_one and set_two
  78. //
  79. prototype Set.Union( ref set set_one, ref set set_two );
  80.  
  81. //
  82. // Set.Intersection( ref set set_one, ref set set_two )
  83. //
  84. // The intersection of set_one and set_two
  85. //
  86. prototype Set.Intersection( ref set set_one, ref set set_two );
  87.  
  88. //
  89. // Set.Difference( ref set set_one, ref set set_two )
  90. //
  91. // The difference of set_one and set_two
  92. //
  93. prototype Set.Difference( ref set set_one, ref set set_two );
  94.  
  95. //
  96. // Set.FromList( ref list the_list )
  97. //
  98. // Create a set from the_list
  99. //
  100. prototype set Set.FromList( list the_list );
  101.  
  102.  
  103.  
  104.  
  105.  
  106. #endif // FLUX_LIB
  107.